﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200137F RID: 4991
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TakeQuestOptionalRewardScRsp : IMessage<TakeQuestOptionalRewardScRsp>, IMessage, IEquatable<TakeQuestOptionalRewardScRsp>, IDeepCloneable<TakeQuestOptionalRewardScRsp>, IBufferMessage
	{
		// Token: 0x17003EED RID: 16109
		// (get) Token: 0x0600DF76 RID: 57206 RVA: 0x00255A33 File Offset: 0x00253C33
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TakeQuestOptionalRewardScRsp> Parser
		{
			get
			{
				return TakeQuestOptionalRewardScRsp._parser;
			}
		}

		// Token: 0x17003EEE RID: 16110
		// (get) Token: 0x0600DF77 RID: 57207 RVA: 0x00255A3A File Offset: 0x00253C3A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TakeQuestOptionalRewardScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003EEF RID: 16111
		// (get) Token: 0x0600DF78 RID: 57208 RVA: 0x00255A4C File Offset: 0x00253C4C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TakeQuestOptionalRewardScRsp.Descriptor;
			}
		}

		// Token: 0x0600DF79 RID: 57209 RVA: 0x00255A53 File Offset: 0x00253C53
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeQuestOptionalRewardScRsp()
		{
		}

		// Token: 0x0600DF7A RID: 57210 RVA: 0x00255A5C File Offset: 0x00253C5C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeQuestOptionalRewardScRsp(TakeQuestOptionalRewardScRsp other) : this()
		{
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this.retcode_ = other.retcode_;
			this.questId_ = other.questId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600DF7B RID: 57211 RVA: 0x00255AB4 File Offset: 0x00253CB4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeQuestOptionalRewardScRsp Clone()
		{
			return new TakeQuestOptionalRewardScRsp(this);
		}

		// Token: 0x17003EF0 RID: 16112
		// (get) Token: 0x0600DF7C RID: 57212 RVA: 0x00255ABC File Offset: 0x00253CBC
		// (set) Token: 0x0600DF7D RID: 57213 RVA: 0x00255AC4 File Offset: 0x00253CC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x17003EF1 RID: 16113
		// (get) Token: 0x0600DF7E RID: 57214 RVA: 0x00255ACD File Offset: 0x00253CCD
		// (set) Token: 0x0600DF7F RID: 57215 RVA: 0x00255AD5 File Offset: 0x00253CD5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17003EF2 RID: 16114
		// (get) Token: 0x0600DF80 RID: 57216 RVA: 0x00255ADE File Offset: 0x00253CDE
		// (set) Token: 0x0600DF81 RID: 57217 RVA: 0x00255AE6 File Offset: 0x00253CE6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint QuestId
		{
			get
			{
				return this.questId_;
			}
			set
			{
				this.questId_ = value;
			}
		}

		// Token: 0x0600DF82 RID: 57218 RVA: 0x00255AEF File Offset: 0x00253CEF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TakeQuestOptionalRewardScRsp);
		}

		// Token: 0x0600DF83 RID: 57219 RVA: 0x00255B00 File Offset: 0x00253D00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TakeQuestOptionalRewardScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.Reward, other.Reward) && this.Retcode == other.Retcode && this.QuestId == other.QuestId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600DF84 RID: 57220 RVA: 0x00255B60 File Offset: 0x00253D60
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.QuestId != 0U)
			{
				num ^= this.QuestId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600DF85 RID: 57221 RVA: 0x00255BCE File Offset: 0x00253DCE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600DF86 RID: 57222 RVA: 0x00255BD6 File Offset: 0x00253DD6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600DF87 RID: 57223 RVA: 0x00255BE0 File Offset: 0x00253DE0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.Retcode);
			}
			if (this.reward_ != null)
			{
				output.WriteRawTag(42);
				output.WriteMessage(this.Reward);
			}
			if (this.QuestId != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.QuestId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600DF88 RID: 57224 RVA: 0x00255C58 File Offset: 0x00253E58
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.QuestId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.QuestId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600DF89 RID: 57225 RVA: 0x00255CC8 File Offset: 0x00253EC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TakeQuestOptionalRewardScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.QuestId != 0U)
			{
				this.QuestId = other.QuestId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600DF8A RID: 57226 RVA: 0x00255D44 File Offset: 0x00253F44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600DF8B RID: 57227 RVA: 0x00255D50 File Offset: 0x00253F50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 32U)
				{
					if (num != 42U)
					{
						if (num != 80U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.QuestId = input.ReadUInt32();
						}
					}
					else
					{
						if (this.reward_ == null)
						{
							this.Reward = new ItemList();
						}
						input.ReadMessage(this.Reward);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005886 RID: 22662
		private static readonly MessageParser<TakeQuestOptionalRewardScRsp> _parser = new MessageParser<TakeQuestOptionalRewardScRsp>(() => new TakeQuestOptionalRewardScRsp());

		// Token: 0x04005887 RID: 22663
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005888 RID: 22664
		public const int RewardFieldNumber = 5;

		// Token: 0x04005889 RID: 22665
		private ItemList reward_;

		// Token: 0x0400588A RID: 22666
		public const int RetcodeFieldNumber = 4;

		// Token: 0x0400588B RID: 22667
		private uint retcode_;

		// Token: 0x0400588C RID: 22668
		public const int QuestIdFieldNumber = 10;

		// Token: 0x0400588D RID: 22669
		private uint questId_;
	}
}
